<%@page import="java.util.*"%>
<%@page import="com.google.appengine.api.users.UserService"%>
<%@page import="com.google.appengine.api.users.UserServiceFactory"%>
<%@page
	import="com.google.appengine.api.blobstore.BlobstoreServiceFactory"%>
<%@page import="com.google.appengine.api.blobstore.BlobstoreService"%>
<%
	BlobstoreService blobstoreService = BlobstoreServiceFactory
			.getBlobstoreService();
%>
<%
	request.setCharacterEncoding("UTF-8");
	String url = request.getRequestURI();
	String title = "TubeOnFire Login Page";
	String description = "Mix something from youtube. Create an video playlist in seconds";
	String keyword = "video clip, youtube, mix clip, tubeonfire.com, tubeonfire, your clip...";
%>
<jsp:include page="/element/header.jsp">
	<jsp:param name="url" value="<%= url %>" />
	<jsp:param name="title" value="<%=title %>" />
	<jsp:param name="keywords" value="<%=keyword %>" />
	<jsp:param name="description" value="<%=description %>" />
</jsp:include>
<div class="clear"></div>
<section id="wrapper">
	<div class="column-full">
		<br />
		<div class="page_wrap">
			<div class="page_container box_alignleft sidebox">
				<div class="one" style="margin: 5px 5px;">
					<h2 class="title-line alignleft">&nbsp;Login with exits account below : </h2>
					<br> <br><br>
					
					

					<p style="margin-left: 30px;">					
						<%
							Map<String, String> openIdProviders = new HashMap<String, String>();
							openIdProviders.put("Google", "www.google.com/accounts/o8/id");
							openIdProviders.put("Yahoo", "yahoo.com");
							openIdProviders.put("MySpace", "myspace.com");
							openIdProviders.put("AOL", "aol.com");
							openIdProviders.put("MyOpenId.com", "myopenid.com");
							UserService userService = UserServiceFactory.getUserService();
							Set<String> attributes = new HashSet();
							for (String providerName : openIdProviders.keySet()) {
								String providerUrl = openIdProviders.get(providerName);
								String loginUrl = userService.createLoginURL("/home", null,
										providerUrl, attributes);
						%>
						<%
							if (providerName.equalsIgnoreCase("Google")) {
						%>
						<a href="<%=loginUrl%>" title="Connect with <%=providerName%>"><img
							src="/images/google_icon.jpeg"
							alt="Connect with <%=providerName%>"
							style="width: 60px; height: 60px"></a>
						<%
							}
						%>
						<%
							if (providerName.equalsIgnoreCase("MySpace")) {
						%>

						<a href="<%=loginUrl%>" title="Connect with <%=providerName%>"><img
							src="/images/myspace_icon.jpeg"
							alt="Connect with <%=providerName%>"
							style="width: 60px; height: 60px"></a>
						<%
							}
						%>
						<%
							if (providerName.equalsIgnoreCase("Yahoo")) {
						%>
						<a href="<%=loginUrl%>" title="Connect with <%=providerName%>"><img
							src="/images/yahoo_icon.jpeg"
							alt="Connect with <%=providerName%>"
							style="width: 60px; height: 60px"></a>
						<%
							}
						%>
						<%
							if (providerName.equalsIgnoreCase("AOL")) {
						%>
						<a href="<%=loginUrl%>" title="Connect with <%=providerName%>"><img
							src="/images/aol_icon.jpeg" alt="Connect with <%=providerName%>"
							style="width: 60px; height: 60px"></a>
						<%
							}
						%>
						<%
							if (providerName.equalsIgnoreCase("MyOpenId.com")) {
						%>
						<a href="<%=loginUrl%>" title="Connect with <%=providerName%>"><img
							src="/images/myopenid_icon.jpeg"
							alt="Connect with <%=providerName%>"
							style="width: 60px; height: 60px"></a>
						<%
							}
						%>

						<%
							}
						%>
					</p>
				</div>
			</div>

			<div class="page_sidebox box_alignfull">

				<div class="follow_us">
					<div class="follow_social">
						<div class="iconBox">
							<a href="http://twitter.com/Marius_SEO" target="_blank"><div
									class="twitter" title="Yeah, stalking is allowed!"></div></a> <span>
								<div class="follow-text">Follow us</div>
							</span>
						</div>
						<div class="iconBox">
							<a href="http://www.facebook.com/videosoft" target="_blank"><div
									class="facebook" title="Be one of our happy fans"></div></a> <span>
								<div class="follow-text">Be a Fan</div>
							</span>
						</div>
						<div class="iconBox">
							<a href="http://videoinedit.com/rss.php" target="_blank"><div
									class="feedburner" title="Get fresh videos on your e-mail!"></div></a>
							<span>
								<div class="follow-text">Subscribe</div>
							</span>
						</div>
					</div>
				</div>

				<jsp:include page="/element/channels.jsp" />
				<jsp:include page="/element/categories.jsp" />
				<jsp:include page="/element/advertising_right01.jsp" />
				<jsp:include page="/element/playlist.jsp" />
			</div>
			<!-- end pv-sidebox -->
		</div>
	</div>
	<div class="clear"></div>

	<jsp:include page="/element/advertising_right02.jsp" />
	<jsp:include page="/element/footer.jsp" />